package cn.firecode.data_collect.domain.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yangfan
 * @since 2019-12-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Dicom extends Model<Dicom> {

    private static final long serialVersionUID = 1L;

    @TableId("ctID")
    private Integer ctID;

    /**
     * Patient name
     */
    private String name;

    private String sex;

    private String age;

    /**
     * Institution where the equipment that produced the composite instances is located.
     */
    private String institution;

    /**
     * Type of equipment that originally acquired the data.
     */
    private String modality;

    private Float thickness;

    private Float px;

    private Float py;

    /**
     * Text description of the part of the body examined. 
     */
    @TableField("partExamined")
    private String partExamined;

    /**
     * Institution-generated description or classification of the Study (component) performed.
     */
    @TableField("studyDescription")
    private String studyDescription;

    /**
     * User provided description of the Series
     */
    @TableField("seriesDescription")
    private String seriesDescription;

    /**
     * A number that identifies this Series.
     */
    @TableField("seriesNumber")
    private String seriesNumber;

    @TableField("seriesID")
    private String seriesID;

    /**
     * path of original dcm files
     */
    @TableField("dicomPath")
    private String dicomPath;

    /**
     * path of nii path
     */
    @TableField("niiPath")
    private String niiPath;

    @TableField("uploadTime")
    private LocalDateTime uploadTime;

    /**
     * sagittal缩略图路径
     */
    @TableField("sagThumbnail")
    private String sagThumbnail;

    /**
     * coronal缩略图路径
     */
    @TableField("corThumbnail")
    private String corThumbnail;

    /**
     * axial缩略图路径
     */
    @TableField("axThumbnail")
    private String axThumbnail;

    /**
     * 备注
     */
    private String remark;

    /**
     * 部位，具体部位名称见examinedPart
     */
    private Integer part;

    private Long organs;


    @Override
    protected Serializable pkVal() {
        return this.ctID;
    }

}
